package org.uim.cricket.entities;

import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class FullPlayer {

	private String id = null;
	private String shortName = null;
	private String displayName = null;
	private String country = null;
	private String fullName = null;
	private Calendar birthdate = null;
	
	private Map<String, String> otherValues = new HashMap<String, String>();
	private List<String> countries = new ArrayList<String>();
	
	public void addNewAttribute(String key, String value) {
		if (this.otherValues.containsKey(key)) {
			this.otherValues.remove(key);
		}
		this.otherValues.put(key, value);
	}
	
	public void addRepresentedCountry(String aTeam) {
		this.countries.add(aTeam);
	}
	
	public String getId() {
		return id;
	}
	
	public void setId(String id) {
		this.id = id;
	}
	
	public String getShortName() {
		return shortName;
	}
	
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}
	
	public String getDisplayName() {
		return displayName;
	}
	
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}
	
	public String getCountry() {
		return country;
	}
	
	public void setCountry(String country) {
		this.country = country;
	}
	
	public Calendar getBirthdate() {
		return birthdate;
	}
	
	public void setBirthdate(Calendar birthdate) {
		this.birthdate = birthdate;
	}
	
	public Map<String, String> getOtherValues() {
		return otherValues;
	}
	
	public void setOtherValues(Map<String, String> otherValues) {
		this.otherValues = otherValues;
	}
	
	public List<String> getCountries() {
		return countries;
	}
	
	public void setCountries(List<String> countries) {
		this.countries = countries;
	}
	
	public void setFullName(String fullName) {
		this.fullName = fullName;
	}
	
	public String getFullName() {
		return fullName;
	}
	
}
